让我们创造一个碰撞事件,让精灵可以把食物吃掉!

  • 点击 并拖出 Collision
  • 删除 .go_to() 指令。

现在鱼碰到的任何东西都将在控制台上隐藏。

To navigate the page using the TAB key, first press ESC to exit the code editor.

# THIS ACTIVITY IS IN PREVIEW ONLY MODE
  • Run Code
  • Submit Work
  • Next Activity
  • Show Console
  • Reset Code Editor
  • Codesters How To (opens in a new tab)